import request from '@/utils/request'

// 根据高级查询ID查询表单数据
export function selData(query) {
  return request({
    url: '/toolkit/queryLog/selData',
    method: 'get',
    params: query
  })
}

// 新增或修改高级查询
export function saveQueryCondition(query) {
  return request({
    url: '/toolkit/queryLog/saveQueryCondition',
    method: 'post',
    data: query
  })
}

// 根据高级查询ID删除高级查询
export function deleteQueryLog(query) {
  return request({
    url: '/toolkit/queryLog/deletequeryLog',
    method: 'get',
    params: query
  })
}

// 根据表单code查询该表单的高级查询
export function advancedQueriesList(query) {
  return request({
    url: '/toolkit/queryLog/list',
    method: 'get',
    params: query
  })
}
